package com.gcc.controller;


import com.gcc.common.Result;
import com.gcc.pojo.KnowledgeComplication;
import com.gcc.service.KnowledgeComplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author gcc
 * @since 2022-12-30
 */
@RestController
@RequestMapping("/GetKnowledgeComplicationByUserId")
public class KnowledgeComplicationController {
    @Resource
    private KnowledgeComplicationService kcm;

    @GetMapping("/{student_id}/{course_id}")
    public Result<List<KnowledgeComplication>> queryById(@PathVariable String student_id, @PathVariable String course_id) {
        return Result.success(kcm.queryById(student_id, course_id));
    }

}

